<?php

namespace app\api\validate;

use think\Validate;

class Member extends Validate
{
    protected $rule = [
        ['to_user',        'require|number|>:0',        '用户不存在|用户不存在|用户不存在'],
        ['types',          'require|number|in:1,2',     '类型有误|类型有误|类型有误'],
        ['orderid',        'require',                   '单号缺失'],
        ['level',          'number|>:-1',               '等级出错|等级出错'],
        ['page',           'number|>:0',                '当前页出错|当前页出错'],
    ];

    protected $scene = [
        'checkMic'         => ['to_user', 'types'],
        'createMic'        => ['orderid'],
        'remark'           => ['to_user'],
        'team'             => ['level', 'page'],
    ];
}
